package cn.school.classManage.dao;

import cn.school.classManage.vo.SchoolClassVO;
import cn.school.sys.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SchoolClassDao extends BaseMapper<SchoolClassVO> {

    List<SchoolClassVO> findAllSchoolClass(@Param("tenantId") String tenantId);

    List<Long> findSchoolClassIdListByTeacherId(Long teacherId);

    SysUser queryByStudentName(Integer classId);

    //根据登入用户查询班级，教员
    List<SchoolClassVO> findClassName(String userId);

    List<SchoolClassVO> selectClassList(String teacherId);

    List<SchoolClassVO> selectAll();

    SchoolClassVO selectByClassId(Long id);

}
